package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getUser(@Param("id") Long id);

    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(Long id);

    List<User> findUser(@Param("userName") String userName, @Param("note") String note);
}
